<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Bomberman:  Fichier source de /home/ph3w/Bureau/lif7-bomberman/map.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.1 -->
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div class="header">
  <div class="headertitle">
<h1>/home/ph3w/Bureau/lif7-bomberman/map.h</h1>  </div>
</div>
<div class="contents">
<a href="map_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef MAP_h</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define MAP_h</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdlib.h&gt;</span><span class="comment">// Pour fopen, fread</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;dirent.h&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="coordonnees_8h.html">coordonnees.h</a>&quot;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="bonus_8h.html">bonus.h</a>&quot;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="outils_8h.html">outils.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="comment"></span>
<a name="l00012"></a>00012 <span class="comment">/*!</span>
<a name="l00013"></a>00013 <span class="comment">* @class map</span>
<a name="l00014"></a>00014 <span class="comment">* @brief Gère une map.</span>
<a name="l00015"></a>00015 <span class="comment">*/</span>
<a name="l00016"></a><a class="code" href="classmap.html">00016</a> <span class="keyword">class </span><a class="code" href="classmap.html" title="Gère une map.">map</a>
<a name="l00017"></a>00017 {
<a name="l00018"></a>00018     <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00019"></a>00019 <span class="comment">        /*!</span>
<a name="l00020"></a>00020 <span class="comment">        * @enum t_type</span>
<a name="l00021"></a>00021 <span class="comment">        * @brief Les types de d&#39;objet sur la map</span>
<a name="l00022"></a>00022 <span class="comment">        *</span>
<a name="l00023"></a>00023 <span class="comment">        * Aller voir la def dans le .h</span>
<a name="l00024"></a>00024 <span class="comment">        */</span>
<a name="l00025"></a>00025         <span class="comment">// A quoi correspond un block</span>
<a name="l00026"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469b">00026</a>         <span class="keyword">enum</span> <a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469b" title="Les types de d&amp;#39;objet sur la map.">t_type</a> {
<a name="l00027"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba4a8d28cb4af64e5bf311ef83bc5e5ad4">00027</a>             inconnu,<span class="comment">// BUG</span>
<a name="l00028"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba508b0ad2c59b8c654beb73d2239c8e74">00028</a>             vide,
<a name="l00029"></a>00029             <span class="comment">// MUR</span>
<a name="l00030"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469bac6281d911da21f4bb566114037266055">00030</a>             Mur_destructible,
<a name="l00031"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba1bae257451fe92ef4fafd02fed56a850">00031</a>             Mur_INdestructible,
<a name="l00032"></a>00032             <span class="comment">// Flammes</span>
<a name="l00033"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba0b01d857d4519d6da4b8833433a718d0">00033</a>             flamme_horizontal,
<a name="l00034"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469bac2726a799ffd38fb4b89989f24d40e7e">00034</a>             flamme_vertical,
<a name="l00035"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469bac331e3cb1090bc086fc8aec8c40f8d90">00035</a>             flamme_origine,
<a name="l00036"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469bab794750be41b582091eb2b4c480581e4">00036</a>             flamme_pointe_haut,
<a name="l00037"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba09c901a81e700c77bcd7886584f1c443">00037</a>             flamme_pointe_bas,
<a name="l00038"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba62944c1454be834def9f3dd83c71bfe1">00038</a>             flamme_pointe_droite,
<a name="l00039"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba08c81a1be9eb74cd270ee9aba56122a7">00039</a>             flamme_pointe_gauche,
<a name="l00040"></a>00040             <span class="comment">// Armes</span>
<a name="l00041"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba00a358d27f9818438d9bd9b8e882fb2d">00041</a>             bombe_poser,
<a name="l00042"></a>00042             <span class="comment">// Bonus</span>
<a name="l00043"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba5bb1e9e4730d4ba08f3dab2921bfce00">00043</a>             <a class="code" href="classbonus.html" title="Gère les bonus.">bonus</a>,
<a name="l00044"></a>00044             <span class="comment">//gain_bombe,</span>
<a name="l00045"></a>00045             <span class="comment">//gain_puissance_flamme,</span>
<a name="l00046"></a>00046             <span class="comment">//gain_declancheur_manuel,</span>
<a name="l00047"></a>00047             <span class="comment">// Player</span>
<a name="l00048"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba4829d7f791fe2537aaa05edf28cc6630">00048</a>             UN_joueur,
<a name="l00049"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469baa94a2d9d84a636b26e656df3e5ae16b8">00049</a>             plusieurs_joueurs,
<a name="l00050"></a>00050             <span class="comment">// Combinaison</span>
<a name="l00051"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba278e9245c0e1cfb455511d27114dc830">00051</a>             bombe_poser_AVEC_UN_joueur,
<a name="l00052"></a><a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba7eeb793973ee8e2ce702d82fbcd9d759">00052</a>             <a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469ba7eeb793973ee8e2ce702d82fbcd9d759">bombe_poser_AVEC_plusieurs_joueurs</a>
<a name="l00053"></a>00053             <span class="comment">// Points de départ</span>
<a name="l00054"></a>00054             <span class="comment">//point_de_depart_j1,</span>
<a name="l00055"></a>00055             <span class="comment">//point_de_depart_j2,</span>
<a name="l00056"></a>00056             <span class="comment">//point_de_depart_j3,</span>
<a name="l00057"></a>00057             <span class="comment">//point_de_depart_j4</span>
<a name="l00058"></a>00058         };
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="comment"></span>
<a name="l00061"></a>00061 <span class="comment">        /*!</span>
<a name="l00062"></a>00062 <span class="comment">        * @enum t_direction</span>
<a name="l00063"></a>00063 <span class="comment">        * @brief Les directions posssibles pour un personnages ou une flamme</span>
<a name="l00064"></a>00064 <span class="comment">        */</span>
<a name="l00065"></a><a class="code" href="classmap.html#a3b81955b46d9d3b4ba6b0e2e053915df">00065</a>         <span class="keyword">enum</span> <a class="code" href="classmap.html#a3b81955b46d9d3b4ba6b0e2e053915df" title="Les directions posssibles pour un personnages ou une flamme.">t_direction</a> {
<a name="l00066"></a><a class="code" href="classmap.html#a3b81955b46d9d3b4ba6b0e2e053915dfaf0452ecca05d109505ec333e9fcc2c58">00066</a>             DIRECT_haut,
<a name="l00067"></a><a class="code" href="classmap.html#a3b81955b46d9d3b4ba6b0e2e053915dfa6549911f5caaa29bf59759bfc45418e9">00067</a>             DIRECT_bas,
<a name="l00068"></a><a class="code" href="classmap.html#a3b81955b46d9d3b4ba6b0e2e053915dfa297302f99b0ae6abb90b00f2a6400433">00068</a>             DIRECT_droite,
<a name="l00069"></a><a class="code" href="classmap.html#a3b81955b46d9d3b4ba6b0e2e053915dfa417531c3151e10796799ee3bb6685fd9">00069</a>             DIRECT_gauche,
<a name="l00070"></a><a class="code" href="classmap.html#a3b81955b46d9d3b4ba6b0e2e053915dfadee5318e0b79fbc1e9165736bd6d4651">00070</a>             DIRECT_vertical,
<a name="l00071"></a><a class="code" href="classmap.html#a3b81955b46d9d3b4ba6b0e2e053915dfa31eeab6cca9e59faefbd926604871383">00071</a>             <a class="code" href="classmap.html#a3b81955b46d9d3b4ba6b0e2e053915dfa31eeab6cca9e59faefbd926604871383">DIRECT_sans_direction</a>
<a name="l00072"></a>00072         };
<a name="l00073"></a>00073 <span class="comment"></span>
<a name="l00074"></a>00074 <span class="comment">        /*!</span>
<a name="l00075"></a>00075 <span class="comment">        * @struct s_Case</span>
<a name="l00076"></a>00076 <span class="comment">        * Exemple:&lt;br /&gt;</span>
<a name="l00077"></a>00077 <span class="comment">        * - flamme à QUI ? =&gt; La liste contient : le num du joueur qui a provoqué ces flammes&lt;br /&gt;</span>
<a name="l00078"></a>00078 <span class="comment">        * - bombe_poser à QUI ? =&gt; La liste contient : le num du joueur qui a posé la bombe&lt;br /&gt;</span>
<a name="l00079"></a>00079 <span class="comment">        * - UN_joueur QUI ? =&gt; La liste contient : le num du joueur qui est à cette endroit&lt;br /&gt;</span>
<a name="l00080"></a>00080 <span class="comment">        * - plusieurs_joueurs QUI ... ? =&gt; La liste contient : les num des joueurs qui sont à cette endroit&lt;br /&gt;</span>
<a name="l00081"></a>00081 <span class="comment">        * - bombe_poser_AVEC_UN_joueur QUI et QUI ? =&gt; La liste contient : (dans l&#39;ordre !)&lt;br /&gt;</span>
<a name="l00082"></a>00082 <span class="comment">        *       1) Le num du joueur a qui appartient la bombe.&lt;br /&gt;</span>
<a name="l00083"></a>00083 <span class="comment">        *       2) Le num du joueur qui est à cette position&lt;br /&gt;</span>
<a name="l00084"></a>00084 <span class="comment">        * - bombe_poser_AVEC_plusieurs_joueurs QUI et QUI ... ? =&gt; La liste contient : (dans l&#39;ordre !)&lt;br /&gt;</span>
<a name="l00085"></a>00085 <span class="comment">        *       1) Le num du joueur a qui appartient la bombe.&lt;br /&gt;</span>
<a name="l00086"></a>00086 <span class="comment">        *       2 à ...) Les num des joueurs qui sont à cette position.&lt;br /&gt;</span>
<a name="l00087"></a>00087 <span class="comment">        */</span>
<a name="l00088"></a><a class="code" href="structmap_1_1s___case.html">00088</a>         <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00089"></a><a class="code" href="structmap_1_1s___case.html#abb0729961b09f69bd64aa02db1cb83cf">00089</a>             std::vector&lt;unsigned char&gt;* joueur;<span class="comment">//!&lt; La liste est ici pour obtenir des info sur le perso à l&#39;origine du type t.</span>
<a name="l00090"></a><a class="code" href="structmap_1_1s___case.html#a86e865c530706b05742fa388c860652c">00090</a> <span class="comment"></span>            <a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469b" title="Les types de d&amp;#39;objet sur la map.">t_type</a> element;<span class="comment">//!&lt; type d&#39;element.</span>
<a name="l00091"></a>00091 <span class="comment"></span>        } <a class="code" href="structmap_1_1s___case.html">s_Case</a>;
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 
<a name="l00094"></a>00094     <span class="comment">// Variables</span>
<a name="l00095"></a>00095     <span class="keyword">private</span>:
<a name="l00096"></a>00096         <span class="comment">// struct map {</span>
<a name="l00097"></a><a class="code" href="classmap.html#a2bb86c76f29e21c88014ebbe05769096">00097</a>         std::vector&lt;s_Coordonnees&gt; <a class="code" href="classmap.html#a2bb86c76f29e21c88014ebbe05769096" title="Les changement qui ont eu lieu sur la map.">c_listDesChangement</a>;<span class="comment">//!&lt; Les changement qui ont eu lieu sur la map</span>
<a name="l00098"></a><a class="code" href="classmap.html#a12febb145e855330c3bfb0dbc3645259">00098</a> <span class="comment"></span>        <a class="code" href="structs___coordonnees.html" title="struct de coordonnées ( x,y )">s_Coordonnees</a> <a class="code" href="classmap.html#a12febb145e855330c3bfb0dbc3645259" title="Taille de la map.">c_taille</a>;<span class="comment">//!&lt; Taille de la map</span>
<a name="l00099"></a><a class="code" href="classmap.html#aa8dc3f13b258509bd3ef0572f2d8d26d">00099</a> <span class="comment"></span>        <a class="code" href="structmap_1_1s___case.html">s_Case</a> *<a class="code" href="classmap.html#aa8dc3f13b258509bd3ef0572f2d8d26d" title="Tableau de case =&amp;gt; la map en entère.">c_block</a>;<span class="comment">//!&lt; Tableau de case =&gt; la map en entère</span>
<a name="l00100"></a><a class="code" href="classmap.html#a0e259cde2ef3b66ab1c06c1c10def1cc">00100</a> <span class="comment"></span>        <a class="code" href="structs___coordonnees.html" title="struct de coordonnées ( x,y )">s_Coordonnees</a> *<a class="code" href="classmap.html#a0e259cde2ef3b66ab1c06c1c10def1cc" title="Liste des points de départ des joueurs ({point_de_depart_jXXX} numJ).">c_PointDeDepartJoueur</a>;<span class="comment">//!&lt; Liste des points de départ des joueurs ({point_de_depart_jXXX} numJ)</span>
<a name="l00101"></a><a class="code" href="classmap.html#a7b627dce39ed81ebf1bcb398ee4075e3">00101</a> <span class="comment"></span>        <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="classmap.html#a7b627dce39ed81ebf1bcb398ee4075e3" title="Le nombre de points de départ =&amp;gt; le nombre maximum de joueur sur une map.">c_nb_PointDeDepartJoueur</a>;<span class="comment">//!&lt; Le nombre de points de départ =&gt; le nombre maximum de joueur sur une map</span>
<a name="l00102"></a>00102 <span class="comment"></span>        <span class="comment">//}</span>
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 
<a name="l00105"></a>00105     <span class="comment">// Fonctions</span>
<a name="l00106"></a>00106     <span class="keyword">public</span>:
<a name="l00107"></a>00107         <span class="comment">// Modificateurs</span>
<a name="l00108"></a>00108         <a class="code" href="classmap.html#abedfe6722ad83929739afd899c88fea4" title="Constructeur :: Initialise juste les variables. NE Créer PAS de map !">map</a>();
<a name="l00109"></a>00109         <a class="code" href="classmap.html#abedfe6722ad83929739afd899c88fea4" title="Constructeur :: Initialise juste les variables. NE Créer PAS de map !">map</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> tailleX, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> tailleY );
<a name="l00110"></a>00110         <a class="code" href="classmap.html#a0cc22df7b44f7835fa10ed241848b041" title="Désinitialise la class map.">~map</a>();
<a name="l00111"></a>00111         <span class="keywordtype">void</span> <a class="code" href="classmap.html#a9daefd4b8e29eba7b98b734ce4530fea" title="Modifie le block qui est à la position X, Y.">setBlock</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abc682d96c6d194b75d2e8a6430b5b076" title="Renvoie la taille X de la map.">X</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abcb25776d119cd3f2864c67ec05a6a4a" title="Renvoie la taille Y de la map.">Y</a>, <a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469b" title="Les types de d&amp;#39;objet sur la map.">map::t_type</a> what );
<a name="l00112"></a>00112         <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classmap.html#a9daefd4b8e29eba7b98b734ce4530fea" title="Modifie le block qui est à la position X, Y.">setBlock</a>( <a class="code" href="structs___coordonnees.html" title="struct de coordonnées ( x,y )">s_Coordonnees</a>&amp; pos, <a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469b" title="Les types de d&amp;#39;objet sur la map.">map::t_type</a> what );
<a name="l00113"></a>00113         <span class="keywordtype">void</span> <a class="code" href="classmap.html#ac7e126e8c0555f9f2e9c86cc81865b9f" title="Ajoute des meta donnée ( ou info joueurs ) dans le block (X, Y).">ajouterInfoJoueur</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abc682d96c6d194b75d2e8a6430b5b076" title="Renvoie la taille X de la map.">X</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abcb25776d119cd3f2864c67ec05a6a4a" title="Renvoie la taille Y de la map.">Y</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> id_Joueur, <span class="keywordtype">bool</span> premierePosition=0 );
<a name="l00114"></a>00114         <span class="keywordtype">void</span> <a class="code" href="classmap.html#a69992d77d390166473f758436777a415" title="Supprime les info du joueur du block (X, Y).">rmInfoJoueur</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abc682d96c6d194b75d2e8a6430b5b076" title="Renvoie la taille X de la map.">X</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abcb25776d119cd3f2864c67ec05a6a4a" title="Renvoie la taille Y de la map.">Y</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> id_Joueur, <span class="keywordtype">bool</span> premierEltInclu );
<a name="l00115"></a>00115         <span class="keywordtype">void</span> <a class="code" href="classmap.html#a69992d77d390166473f758436777a415" title="Supprime les info du joueur du block (X, Y).">rmInfoJoueur</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abc682d96c6d194b75d2e8a6430b5b076" title="Renvoie la taille X de la map.">X</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abcb25776d119cd3f2864c67ec05a6a4a" title="Renvoie la taille Y de la map.">Y</a> );
<a name="l00116"></a>00116         <span class="keywordtype">void</span> <a class="code" href="classmap.html#a22d57ae0d2336e713c807d92af64ae11" title="Modifie la taille de la map.">setTaille</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> tailleX, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> tailleY );
<a name="l00117"></a>00117         <span class="keywordtype">int</span> <a class="code" href="classmap.html#a5aec3f3890ccd081364731383bbb77c3" title="Charge une map en mémoire.">chargerMap</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> fichier[]=0 );
<a name="l00118"></a>00118         <a class="code" href="structs___coordonnees.html" title="struct de coordonnées ( x,y )">s_Coordonnees</a> <a class="code" href="classmap.html#a5de5675c9ac5f63b57bf05b355942caa" title="Met le perso {joueur} a sa place initial.">mettreJoueurA_sa_PositionInitial</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> joueur );
<a name="l00119"></a>00119 
<a name="l00120"></a>00120         <span class="comment">// Accesseurs</span>
<a name="l00121"></a>00121         <span class="keyword">const</span> <a class="code" href="structmap_1_1s___case.html">s_Case</a>* <a class="code" href="classmap.html#a5ab949cacaad5148299aa70f55bb0c93" title="Retourn le block qui est à la position X, Y.">getBlock</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abc682d96c6d194b75d2e8a6430b5b076" title="Renvoie la taille X de la map.">X</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abcb25776d119cd3f2864c67ec05a6a4a" title="Renvoie la taille Y de la map.">Y</a> ) <span class="keyword">const</span>;
<a name="l00122"></a>00122         <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structmap_1_1s___case.html">s_Case</a>* <a class="code" href="classmap.html#a5ab949cacaad5148299aa70f55bb0c93" title="Retourn le block qui est à la position X, Y.">getBlock</a>( <a class="code" href="structs___coordonnees.html" title="struct de coordonnées ( x,y )">s_Coordonnees</a>&amp; pos ) <span class="keyword">const</span>;
<a name="l00123"></a>00123         <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abc682d96c6d194b75d2e8a6430b5b076" title="Renvoie la taille X de la map.">X</a>() <span class="keyword">const</span>;
<a name="l00124"></a>00124         <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abcb25776d119cd3f2864c67ec05a6a4a" title="Renvoie la taille Y de la map.">Y</a>() <span class="keyword">const</span>;
<a name="l00125"></a>00125         <a class="code" href="structs___coordonnees.html" title="struct de coordonnées ( x,y )">s_Coordonnees</a> <a class="code" href="classmap.html#a69a17c9066d0cc1b9cf2f0123db3114e" title="Renvoie la position initial du joueur.">positionInitialJoueur</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> joueur ) <span class="keyword">const</span>;
<a name="l00126"></a>00126         <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="classmap.html#a8d73464b1277da47780e984631039299" title="Renvoie le nombre de joueur maximum sur la carte en cours.">nb_PointDeDepartJoueur</a>() <span class="keyword">const</span>;
<a name="l00127"></a>00127         <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="classmap.html#a27112670bd34ef701a81f727410ed3b4" title="Alias de map::nb_PointDeDepartJoueur().">nb_MAX_Joueur</a>() <span class="keyword">const</span>;
<a name="l00128"></a>00128         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#ab7ddadf37a30d0f56b8fe9fb5331e67f" title="Renvoie le nombre d&amp;#39;info joueurs dans le block (X, Y) (meta données).">nb_InfoJoueur</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abc682d96c6d194b75d2e8a6430b5b076" title="Renvoie la taille X de la map.">X</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abcb25776d119cd3f2864c67ec05a6a4a" title="Renvoie la taille Y de la map.">Y</a> ) <span class="keyword">const</span>;
<a name="l00129"></a>00129         <span class="keywordtype">bool</span> <a class="code" href="classmap.html#a37db5c6e03a1245a8c461d56d7f011ef">getModifications</a>( <a class="code" href="structs___coordonnees.html" title="struct de coordonnées ( x,y )">s_Coordonnees</a>&amp; pos );
<a name="l00130"></a>00130         <span class="keyword">inline</span> <span class="keyword">const</span> std::vector&lt;s_Coordonnees&gt;* <a class="code" href="classmap.html#a37db5c6e03a1245a8c461d56d7f011ef">getModifications</a>() <span class="keyword">const</span>;
<a name="l00131"></a>00131         <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classmap.html#a42565c1df7cd77962409dffcb24e60b9" title="Vide la liste des modifications.">cleanModifications</a>();
<a name="l00132"></a>00132 
<a name="l00133"></a>00133         <span class="comment">// Autres</span>
<a name="l00134"></a>00134         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classmap.html#a2580f0c7145597fb4dc54632a4f90e0b" title="Lit le dossier ./map et retourne ( par files ) les fichiers (.map) qu&amp;#39;il contient.">readDir</a>( std::vector&lt;std::string&gt;* files );
<a name="l00135"></a>00135 };
<a name="l00136"></a>00136 
<a name="l00137"></a>00137 <span class="comment">// Ajout des fonctions inline</span>
<a name="l00138"></a>00138 <span class="preprocessor">#include &quot;<a class="code" href="map_8inl.html">map.inl</a>&quot;</span>
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Généré le Fri Jan 21 2011 01:21:27 pour Bomberman par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
